<?php


namespace app\common\model;


class CircleComments extends BaseModel
{
    public function getCanDeleteAttr($value, $data): bool
    {

        $loginUserId = request()->userInfo["platform"] === "1" ? request()->userInfo["id"] : request()->userInfo["patientId"];
        if (in_array($loginUserId, $data["opt_users"], true)) {
            return true;
        }
        return false;
    }
}